import org.huang.sample02.AppServer;
import org.huang.sample02.bean.SampleBean;
import org.huang.sample02.bean.SampleBean2;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;

/**
 * @描述:
 * @作者 Mr.Huang
 * @创建时间 2017-08-07
 * @版本: 1.0
 */
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = AppServer.class)
//@WebAppConfiguration
public class SpringBootTestSample {


    @Autowired
    private SampleBean sampleBean;


    @Autowired
    private SampleBean2 sampleBean2;


    @Test
    public void testSampleBean(){
        System.out.println("sampleBean=>"+sampleBean);
        System.out.println("sampleBean2=>"+sampleBean2);
    }
}
